@import "../variables/default.scss";
@import "../mixins/index.scss";

$at-list-item-horizontal-padding: 24px;

@mixin squareImg($size: 56px) {
  width: $size;
  height: $size;

  &__info {
    width: 100%;
    height: 100%;
  }
}

.at-list {
  // flex: 1;
  width: 100%;
  background-color: $color-bg;


  &--no-border {
    @include hairline-top-bottom($width: 0);
  }


  &__item {
    padding: $spacing-v-lg $spacing-h-lg;
    position: relative;
    color: $at-list-text-color;
    font-size: $font-size-lg;
    line-height: $line-height-zh * $font-size-lg;
    @include active;
    @include hairline-bottom-relative($left: $spacing-h-lg);

    &--no-border {
      @include hairline-bottom-relative($width: 0);
    }

    &-container {
      @include display-flex;
      @include align-items(center);

      &--disabled {
        opacity: $opacity-disabled;
      }
    }

    &--thumb {
      margin-right: $at-list-item-horizontal-padding;

      &__info {
        width: $at-list-thumb-size;
        height: $at-list-thumb-size;
      }
    }

    &-content {
      @include flex(1);

      overflow: hidden;
      margin-right: 40px;

      &__info {
        &-title {
          color: $at-list-text-color;
          font-size: $float-layout-title-font-size;
        }

        &-note {
          color: $at-list-content-color;
          font-size: $font-size-base;
          flex: 1;
          margin-top: 10px;
        }
      }
    }
  }
}

.item-extra {
  max-width: $at-list-extra-width;
  text-align: right;
  display: flex;
  align-items: center;
  flex-direction: row;

  &__info {
    max-width: 100%;
    color: $at-list-extra-color;
    padding-right: 30px;
    font-size: $font-size-lg;
  }

  &__icon {
    margin-right: -12px;

    &-arrow {
      color: $at-list-arrow-color;
      font-size: 48px;
    }
  }
}

.item-icon {
  margin-right: $at-list-item-horizontal-padding;
}
